using System;
using System.Buffers;

namespace Letter.IO.Buf;

public interface IReadableBuffer<T>
{
    public long ReadableLength { get; }
    ReadOnlySequence<T> GetReadableSequence();
    void ReaderAdvanceTo(SequencePosition consumed);
    void ReaderAdvanceTo(SequencePosition consumed, SequencePosition examined);
}